
import {memberlist} from '../../../request/api'
const state = {
    memberList:[]
}

const getters = {
    getMember(state){
        return state.memberList
    }
}

const mutations = {
    CHANGE(state,payload){
        state.memberList = payload
    }
}

const actions = {
    GetMemberInfo({commit}){
        memberlist()
        .then(res=>{
            if(res.code == 200){
                console.log(res.list);
                commit('CHANGE',res.list)
            }
        })
    }
}

export default {
     state,
     getters,
     mutations,
    actions,
    namespaced:true
}